﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace TLM.PlaylistGenerator.Model
{
    /// <summary>
    /// This class is used for serialization the test that is included in the playlist
    /// </summary>
    [Serializable]
    public class IncludedTest
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="IncludedTest"/> class.
        /// </summary>
        public IncludedTest()
        {
            // Parameter less constructor for serialization
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="IncludedTest"/> class.
        /// </summary>
        /// <param name="fullyQualifiedName">The fully qualified name of the test</param>
        /// <example>ANmespace.Subnamspace.Test1</example>
        public IncludedTest(string fullyQualifiedName)
        {
            FullyQualifiedName = fullyQualifiedName;
        }

        /// <summary>
        /// Gets or sets the name of the fully qualified.
        /// </summary>
        /// <value>
        /// The name of the fully qualified.
        /// </value>
        [XmlAttribute(AttributeName = "Test")]
        public string FullyQualifiedName { get; set; }
    }
}